<!DOCTYPE html>
<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="utf-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<html>
<head>
    <%--让ie8 下支持最新的渲染模式--%>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <%--让360浏览器 采用高速模式渲染页面--%>
    <meta name="renderer" content="webkit">
    <title>个人课表</title>

    <script type="text/javascript" src="${basePath}/resources/jquery/plugins/jBox/jquery.jBox-2.3.min.js"></script>
    <script type="text/javascript" src="${basePath}/resources/jquery/plugins/jBox/i18n/jquery.jBox-zh-CN.js"></script>
    <link rel="Stylesheet" type="text/css" href="${basePath}/resources/jquery/plugins/jBox/Skins/Default/jbox.css"/>
    <link rel="Stylesheet" type="text/css" href="${basePath}/resources/ui/bootstrap/bootstrap-responsive.min.css"/>

    <%--自定义--%>
    <link rel="Stylesheet" type="text/css" href="${basePath}/resources/css/eas.searchkb.css"/>

    <style type="text/css">

        body {
            font-family: 'Microsoft YaHei', Arial;
            font-size: 12px;
            padding: 0px;
            margin: 10px;
        }

        form {
            margin: 0;
            padding: 0;
        }

        select, table {
            margin-bottom: 0px;
        }

        .responsive-utilities td.is-visible {
            color: #468847;
            background-color: #dff0d8 !important;
        }

        .responsive-utilities td.is-hidden {
            cursor: pointer;
            color: #ccc;
            background-color: #f9f9f9 !important;
        }

        .responsive-utilities > tbody > tr > th,
        .responsive-utilities > tbody > tr > td,
        .responsive-utilities > thead > tr > th {
            vertical-align: middle;
            text-align: center;
        }

        .responsive-utilities td {
            width: 200px;
            word-break: break-all;
        }

        .infoTd {
            table-layout: fixed;
            word-wrap: break-word;
            overflow: hidden; /*让多出来的不显示*/
            padding: 4px;
            margin: 2px;
            background-color: #dff0d8;
        }

        .white {
            background-color: #b0e794;
        }

        .kbTitle {
            margin-right: auto;
            margin-left: auto;
            margin-top: 5px;
            line-height: 25px;
            vertical-align: middle;
            overflow: hidden;
            text-align: center
        }

    </style>
</head>
<body>

<table class="table table-bordered responsive-utilities">
    <thead>
    <tr>
        <th colSpan="2" style="width: 80px">节次\星期</th>
        <th>星期一</th>
        <th>星期二</th>
        <th>星期三</th>
        <th>星期四</th>
        <th>星期五</th>
    </tr>
    </thead>

    <tbody>

    <c:forEach items="${returnlist}" var="jcaplist" varStatus="status">
        <tr>
            <c:if test="${jcaplist.flag==1}">
                <th rowSpan="2" align="center" valign="middle" style="width: 50px;">上<br>午</th>
            </c:if>
            <c:if test="${jcaplist.flag==3}">
                <th rowSpan="2" align="center" valign="middle" style="width: 50px;">下<br>午</th>
            </c:if>

            <th scope="row" style="width: 50px;" djdj="${jcaplist.flag}"><code>${jcaplist.flag*2-1}</code><br>
                <c:if test="${jcaplist.flag!=4}"><code>${jcaplist.flag*2}</code></c:if></th>

            <c:forEach items="${jcaplist.list1}" var="zjaplist">
                <td xqj="${zjaplist.flag}">

                    <c:if test="${fn:length(zjaplist.list1)>0}">

                        <c:forEach items="${zjaplist.list1}" var="ap" varStatus="status">
                            <div class="infoTd" pkmxid="${ap.id}">
                                    ${ap.kcmc}<br>${ap.jj}/<span style="color: #4870ff">${ap.dszmc}</span>[${ap.djj}节]
                                <c:if test="${ap.qzzmc!=null}">(${ap.qzzmc})</c:if><br>
                                <c:if test="${ap.jsmc!=null}">【${ap.jsmc}】</c:if>
                                【${ap.xzbmc}】
                            </div>
                        </c:forEach>

                    </c:if>

                </td>
            </c:forEach>
        </tr>
    </c:forEach>


    </tbody>
</table>


</body>
</html>